#include"stack.h"

test1()
{
	Stack p;
	Stack* ps = &p;
	StackInit(ps);
	StackPush(ps, 1);
	StackPush(ps, 2);
	StackPush(ps, 3);
	StackPush(ps, 4);
	StackPush(ps, 5);
	for (int i = 0; i < ps->_top; i++)
	{
		printf("%d ", ps->_a[i]);
	}

}
void test2()
{
	Stack p;
	Stack* ps = &p;
	StackInit(ps);
	StackPush(ps, 1);
	StackPush(ps, 2);
	StackPush(ps, 3);
	StackPush(ps, 4);
	StackPush(ps, 5);
	while (StackEmpty(ps)==0)
	{
		STDataType ret = StackTop(ps);
		printf("%d ", ret);
		StackPop(ps);
	}
}

int main()
{
	//test1();
	//test2();

	return 0;
}